home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
libs
/
fastsincos2.lha
/
fastsincos.doc
< prev
next >
Wrap
Text File
|
1992-07-27
|
3KB
|
89 lines
fastsincos.library v2.0
-----------------------
Rio,1 Sep 1994.
Copyright (c) Ricardo Temporal. E-mail: temporal@novel.nce.ufrj.br
WHAT IS IT
----------
This is a run time shared library (really shareDware) that has only
two math functions, they are: sin & cos.
--> Why?
It's very usefull for computer graphics related programs and demos,
if you want to rotate a vector and so on.
--> Advantages?
Well, I have tested on a A1200 HD standard with only 2Mb of chip memory and
no math co-processor, it was about 11 times faster than standard functions.
I'm working on precision, v2.0 has an error < 0.002 ,
but if an optimization causes a time lost, I will not do it because this
error is acceptable for most applications.
The functions works with double, it wouldn't exist any time diference
if it was float. Because It works with an almost hash algorithm.
This kind of thing should be avoied for obvious reasons:
k = (float)fastsin((double)j);
--> Advantages from v1.0?
Well, there's not so much to say,
v1.0 was 4.34 times faster,but
v2.0 is 11 times faster than standard functions.
--> Disk and Memory?
This library takes about 8Kb of disk and 20Kb of memory,and
I really think it's ridiculous, even for who are short of memory,
a dir command takes about 10Kb.
If the number of calls to OpenLibrary and CloseLibrary are the
same then at any moment the Operational System can automaticaly Expunge
the library from memory if it needs memory, or you can force it
with "flushlibs" or "avail flush" commands.
DISTRIBUTION
------------
The programs and files in this distribution can be freely distributed,
by any mean that preserves it's Copyrights. The code and files cannot be
changed or removed.
If you're going to write a program that is freely distributable or
it's a commercial program and you want to use "fastsincos.library",
you must declare in your documentation that your program uses
"fastsincos.library" and it's Copyright (c) by Ricardo Temporal, registration
is also required with just US$15.00 fee,for time and work spent.
DISCLAIMER
----------
NO WARRANTIES ARE MADE. ALL USE IS AT YOUR OWN RISK.
NO LIABILITY OR RESPONSIBILITY IS ASSUMED.
The author has no responsability for any damage it can cause.
BUGS & SUGGESTIONS
------------------
You can contact me by the E-mail address, some times I'm on
Internet Amiga channel.
E-mail: temporal@novel.nce.ufrj.br
I study mathematics at Rio de Janeiro Federal University (ufrj) - Brasil.
Now I'm working on a project with C++ classes for linear transformations,
they are not only arrays but linear operators with n parameters.
Thank's for the support to shareware authors.